package com.adou.common.model;

import com.adou.common.util.StringUtil;

import java.io.Serializable;

/**
 *
 * @author crg
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    
    private Long id;

    private String cuserid;

    private String cpswd;

    private String crealname;

    private Integer iusertype;

    private Long iareaid;

    private Long iorgid;
    
    /**
     *
     */
    public User() {

    }

    /**
     *
     * @param id
     * @param crealname
     * @param cuserid
     * @param iareaid
     * @param iorgid
     * @param iusertype
     */
    public User(Long id, String crealname, String cuserid, Integer iusertype, Long iareaid, Long iorgid) {
        this.id = id;
        this.crealname = StringUtil.replaceHtmlScript(crealname);
        this.cuserid = StringUtil.replaceHtmlScript(cuserid);
        this.iusertype = iusertype;
        this.iareaid = iareaid;
        this.iorgid = iorgid;
    }
    
    /**
     *
     * @return
     */
    public Long getId() {
        return id;
    }

    /**
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     *
     * @return
     */
    public String getCpswd() {
        return cpswd;
    }

    /**
     *
     * @param cpswd
     */
    public void setCpswd(String cpswd) {
        this.cpswd = StringUtil.replaceHtmlScript(cpswd);
    }

    /**
     *
     * @return
     */
    public String getCuserid() {
        return cuserid;
    }

    /**
     *
     * @param cuserid
     */
    public void setCuserid(String cuserid) {
        this.cuserid = StringUtil.replaceHtmlScript(cuserid);
    }

    /**
     *
     * @return
     */
    public String getCrealname() {
        return crealname;
    }

    /**
     *
     * @param crealname
     */
    public void setCrealname(String crealname) {
        this.crealname = StringUtil.replaceHtmlScript(crealname);
    }

    /**
     *
     * @return
     */
    public Long getIareaid() {
        return iareaid;
    }

    /**
     *
     * @param iareaid
     */
    public void setIareaid(Long iareaid) {
        this.iareaid = iareaid;
    }

    /**
     *
     * @return
     */
    public Long getIorgid() {
        return iorgid;
    }

    /**
     *
     * @param iorgid
     */
    public void setIorgid(Long iorgid) {
        this.iorgid = iorgid;
    }

    /**
     *
     * @return
     */
    public Integer getIusertype() {
        return iusertype;
    }

    /**
     *
     * @param iusertype
     */
    public void setIusertype(Integer iusertype) {
        this.iusertype = iusertype;
    }
}